怎么在<body>中加链接样式???

来源:百度知道 编辑:UC知道 时间:2024/06/16 06:13:59
这个不是那种满低级的问题,不要回答什么在<head></head>中加<style>,
我要的是怎么在<body>中加链接样式。像我们一般都可以在写一个<table>的时候在里面加style="background:url(../images/10.gif); background-repeat:no-repeat; cursor:hand; color: #0066CC; font-weight:bold;"之类的,但是我想把一般只写在CSS里的这种:a:link,a:visited{
color: #004080;
text-decoration:underline;
}
a:hover{
color: #FF0000;
text-decoration:underline;
}
样式加到我先说的<table>里怎么样弄列??????或者有别的方法,只要能让我的链接文字有划上去和不划上去的两种样式就可以了!!!
我也算是个熟手,不要告诉我一些处理低级问题的答案,只望跪求高手支招!!!!答对加悬赏分!!!

sunny_sylphy 说了不是这种低级答案了,进来凑数的是吧??!!闹眼子!!看不懂说明你水平不够!

可以
<style>
.style1:hover
{
color: #FF0000;
text-decoration:underline;
}
.style1:link
{
color: #004080;
text-decoration:underline;
}
.style1:visited
{
color: #004080;
text-decoration:underline;
}
</style>

在你想使用此类时加入class="style1"就行了..
style1可以自己随意改.如果你些了两种.style1 and style2
class="style1"就使用style1样式
class="style2"就使用style2样式

<table><td style="background:#000; color:#666">你好</td></table>

是这样吧。

没明白你说的什么意思,自己组织一下语言逻辑吧。